//
//  OneTableViewCell.m
//  UI13_豆瓣活动作业
//
//  Created by LHY on 15/12/30.
//  Copyright © 2015年 Lanou 32 李昊宇. All rights reserved.
//

#import "OTableViewCell.h"

@implementation OTableViewCell

- (void)dealloc
{
    [_label release];
    [_image release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self Movie];
    }
    return self;
}



- (void)Movie {
    
    UIImageView *image1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 340, 150) ];
    
    image1.image = [UIImage imageNamed:@"/Users/dllo/Desktop/UI豆瓣2015到2016跨年作业/UI豆瓣2015到2016跨年作业/bg_eventlistcell.png"];
    [self.contentView addSubview:image1];

    
    
    self.image = [[UIImageView alloc] init];
    [self.contentView addSubview:_image];
    self.label = [[UILabel alloc] init];
    [self.contentView addSubview:_label];

}



- (void)layoutSubviews {
    [super layoutSubviews];
    
    
    
    
    _image.frame = CGRectMake(15, 15, 90, 140);
    _image.backgroundColor = [UIColor orangeColor];
    _label.frame = CGRectMake(120, 75, 250, 50);
    _label.textAlignment = NSTextAlignmentCenter;
    _label.font = [UIFont boldSystemFontOfSize:25];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
